package ch6;

import java.sql.*;

public class JdbcUtils {
    public static Connection getConnection() throws  ClassNotFoundException , SQLException {
        Class.forName("com.mysql.jdbc.Driver");
        String url = "jdbc:mysql://localhost/smbms";
        String user = "root";
        String password = "123456";
        Connection connection = DriverManager.getConnection(url,user,password);
       return connection;

    }
public static void release(Connection connection, PreparedStatement ps){}
    public static void close(Connection connection, PreparedStatement ps, ResultSet resultSet){}


}
